package org.yangspring.samples.mvc.serviceOracle;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.yangspring.samples.mvc.daoOracle.VdatafileDAO;
import org.yangspring.samples.mvc.domainOracle.Vdatafile;

import java.util.List;

import static java.lang.System.out;

/**
 * Created by franklin on 6/24/2017.
 */

@Service
public class VdatafileServiceImpl implements VdatafileService {

    private static final Logger logger = LoggerFactory.getLogger(VdatafileServiceImpl.class);

    @Autowired
    private VdatafileDAO vdatafileDao;
//    public void setVdatafileDao(VdatafileDAO vdatafileDao){
//        this.vdatafileDao = vdatafileDao;
//    }

    @Transactional
    public List<Vdatafile> listVdatafile(){
        logger.warn("\nOracle VdatafileServiceImpl\n");
        return this.vdatafileDao.listVdatefile();
    }

}
